package com.xxh.cloud.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ASUS
 * @date 2021/9/2 18:05
 */
@SpringBootApplication //启动类
@MapperScan(basePackages = "com.xxh.cloud.provider.mapper")  //持久化层扫描
@EnableDiscoveryClient //服务注册与发现
@EnableTransactionManagement //开启事务
public class providerApplication {
    public static void main(String[] args) {
        SpringApplication.run(providerApplication.class,args);
    }
}
